/*
 * @Author: CSG@HYC
 * @Date: 2025-08-24 15:21:50
 * @FilePath: \MDK-ARMe:\Desktop\bootloader\INT\AT24C02.h
 */
#ifndef __AT24C02_H
#define __AT24C02_H

#include <stdint.h>

#define AT24WRITEADDR   0xA0
#define AT24READADDR    0xA1

void AT24C02_Init(void);
uint8_t AT24C02_WriteByte(uint8_t inaddr, uint8_t wdata);
uint8_t AT24C02_WritePage(uint8_t inaddr, uint8_t *wdata);
uint8_t AT24C02_ReadData(uint8_t inaddr, uint8_t *rdata, uint16_t len);
void AT24C02_WriteOTAInfo(void);
void AT24C02_ReadOTAInfo(void);

#endif /* __AT24C02_H */


